package com.bjb.vr.common.mapper;

import com.bjb.vr.common.ao.ResPackageDetailAo;
import com.bjb.vr.common.ao.ResPackageDetailRemoveAo;
import com.bjb.vr.common.dto.OptProdBundleDetail;
import com.bjb.vr.common.vo.ResPackageDetailVo;
import com.github.yulichang.base.MPJBaseMapper;

import java.util.List;

/**
* @author sea
* @description 针对表【opt_prod_bundle_detail(资源包详情表)】的数据库操作Mapper
* @createDate 2022-11-28 11:10:34
* @Entity com.bjb.vr.common.dto.OptProdBundleDetail
*/
public interface OptProdBundleDetailMapper extends MPJBaseMapper<OptProdBundleDetail> {

	List<ResPackageDetailVo> queryPackageResources(ResPackageDetailAo resPackageDetailAo);

	List<ResPackageDetailVo> queryOptPackageResources(ResPackageDetailAo resPackageDetailAo);

	Integer queryPackageResourcesSize(ResPackageDetailAo resPackageDetailAo);

	Integer queryOptPackageResourcesSize(ResPackageDetailAo resPackageDetailAo);

	Integer deleteByResBundleId(ResPackageDetailRemoveAo resPackageDetailRemoveAo);

	List<ResPackageDetailVo> selectByResBundleIdAndResIds(ResPackageDetailRemoveAo resPackageDetailRemoveAo);

	Integer sumResCapacity(ResPackageDetailRemoveAo removeAo);
}




